Piwik\Common D

Total Complexity 171
Dependencies 11
Dependents 450
Total lines 1,033
Lines of code 495
Logical lines of code 295
Comment lines 474
Methods 53
Properties 1

Methods 53

Method Rating Maintainability Complexity Lines of code
getRequestVar()
C
38 25 64
extractLanguageAndRegionCodeFromBrowserLanguage()
A
51 9 26
sanitizeInputValues()
A
54 8 20
extractCountryCodeFromBrowserLanguage()
A
55 8 19
getLastJsonError()
S
58 7 17
sendResponseCode()
S
54 6 16
isPhpCliMode()
S
61 6 12
getBrowserLanguage()
S
51 5 26
hashEquals()
S
59 4 14
hash()
S
60 4 13
printDebug()
S
62 4 12
safe_unserialize()
S
60 4 12
unprefixTable()
S
61 4 11
getCountry()
S
65 4 8
extractLanguageCodeFromBrowserLanguage()
S
60 3 13
getCampaignParameters()
S
60 3 12
unsanitizeInputValues()
S
63 3 11
sanitizeString()
S
62 3 11
getProcessId()
S
63 3 11
stringEndsWith()
S
64 3 10
stripHeader()
S
72 3 5
destroy()
S
68 3 7
convertVisitorIdToBin()
S
68 3 6
getSqlStringFieldsArray()
S
63 3 10
forceDotAsSeparatorForDecimalPoint()
S
70 3 6
sendHeader()
S
71 3 5
getContinent()
S
66 3 8
getCurrentLocationProviderId()
S
73 2 4
isXmlHttpRequest()
S
77 2 3
checkValidLanguagesIsSet()
S
67 2 8
prefixTables()
S
69 2 7
getRandomString()
S
64 2 9
isRunningConsoleCommand()
S
67 2 7
getRandomInt()
S
70 2 6
sanitizeLineBreaks()
S
77 2 3
convertUserIdToVisitorIdBin()
S
75 1 4
mb_strtolower()
S
79 1 3
isGoalPluginEnabled()
S
78 1 3
isActionsPluginEnabled()
S
78 1 3
isPhpCgiType()
S
74 1 4
mb_substr()
S
78 1 3
mb_strlen()
S
79 1 3
unsanitizeInputValue()
S
78 1 3
mb_strtoupper()
S
79 1 3
sanitizeInputValue()
S
73 1 5
hasJsonErrorOccurred()
S
79 1 3
sanitizeNullBytes()
S
78 1 3
generateUniqId()
S
79 1 3
prefixTable()
S
74 1 4
getProviderNames()
S
72 1 5
getClassLineage()
S
74 1 4
hex2bin()
S
79 1 3
hashStringToInt()
S
73 1 4